Freescale Semiconductor /MKE16F16 /CMP2 /C2

Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text

Interpret as C2

31 2827 2423 2019 1615 1211 87 43 0 0 0 0 0 0 0 0 00 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0ACOn0 (000000)INITMOD0 (00)NSAM 0 (CH0F)CH0F 0 (CH1F)CH1F 0 (CH2F)CH2F 0 (CH3F)CH3F 0 (CH4F)CH4F 0 (CH5F)CH5F 0 (CH6F)CH6F 0 (CH7F)CH7F 0 (000)FXMXCH 0 (0)FXMP 0 (0)RRIE 0 (0)RRE

FXMXCH=000, RRE=0, NSAM=00, INITMOD=000000, FXMP=0, RRIE=0

Description

CMP Control Register 2

Fields

ACOn

The result of the input comparison for channel n

INITMOD

Comparator and DAC initialization delay modulus.

0 (000000): The modulus is set to 64(same with 111111).

NSAM

Number of sample clocks

0 (00): The comparison result is sampled as soon as the active channel is scanned in one round-robin clock.

1 (01): The sampling takes place 1 round-robin clock cycle after the next cycle of the round-robin clock.

2 (10): The sampling takes place 2 round-robin clock cycles after the next cycle of the round-robin clock.

3 (11): The sampling takes place 3 round-robin clock cycles after the next cycle of the round-robin clock.

CH0F

Channel 0 input changed flag

CH1F

Channel 1 input changed flag

CH2F

Channel 2 input changed flag

CH3F

Channel 3 input changed flag

CH4F

Channel 4 input changed flag

CH5F

Channel 5 input changed flag

CH6F

Channel 6 input changed flag

CH7F

Channel 7 input changed flag

FXMXCH

Fixed channel selection

0 (000): Channel 0 is selected as the fixed reference input for the fixed mux port.

1 (001): Channel 1 is selected as the fixed reference input for the fixed mux port.

2 (010): Channel 2 is selected as the fixed reference input for the fixed mux port.

3 (011): Channel 3 is selected as the fixed reference input for the fixed mux port.

4 (100): Channel 4 is selected as the fixed reference input for the fixed mux port.

5 (101): Channel 5 is selected as the fixed reference input for the fixed mux port.

6 (110): Channel 6 is selected as the fixed reference input for the fixed mux port.

7 (111): Channel 7 is selected as the fixed reference input for the fixed mux port.

FXMP

Fixed MUX Port

0 (0): The Plus port is fixed. Only the inputs to the Minus port are swept in each round.

1 (1): The Minus port is fixed. Only the inputs to the Plus port are swept in each round.

RRIE

Round-Robin interrupt enable

0 (0): The round-robin interrupt is disabled.

1 (1): The round-robin interrupt is enabled when a comparison result changes from the last sample.

RRE

Round-Robin Enable

0 (0): Round-robin operation is disabled.

1 (1): Round-robin operation is enabled.

Links

() ()